package org.han.permission.mapper;

import org.han.base.mapper.BaseMapper;
import org.han.permission.domain.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    //删除所有
    void deleteAll();


    List<Permission> tree();

    // 权限拦截
    List<String> loadPermissionSnsByLoginUserId(Long loginUserId);
}
